package com.lst.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.lst.dao.QuestionMapper;
import com.lst.model.Question;
import com.lst.service.QuestionService;


/**
 * @ClassName: QuestionServiceImpl
 * @Description: 问题添加实现类层
 * 
 */
@Service("QuestionService")
public class QuestionServiceImpl implements QuestionService {
	
	@Autowired
	private QuestionMapper dao;

	@Override
	public int insert(Question record) {
		return dao.insert(record);
	}

	@Override
	public Question selectByPrimaryKey(Integer id) {
		
		return dao.selectByPrimaryKey(id);
	}

	@Override
	public int updateQuestion(Question record) {
		return dao.updateQuestion(record);
	}


	@Override
	public List<Question> queryByList(Map<String, Object> map, PageBounds pageBounds) {
		return dao.queryByList(map, pageBounds);
	}

	@Override
	public int deleteUpdate(Integer id) {
		return dao.deleteUpdate(id);
	}

	

}
